Skip to content

Create intermediate directories when writing to file with .to_netcdf methods.#56

Merged
atrabattoni merged 10 commits intodevfrom
feature/exist_ok
Mar 5, 2026
Merged

Create intermediate directories when writing to file with .to_netcdf methods.#56
atrabattoni merged 10 commits intodevfrom
feature/exist_ok

Conversation

@atrabattoni
Copy link
Copy Markdown
Contributor

@atrabattoni atrabattoni commented Mar 5, 2026

When writing a file, create missing directories.

Should it be the default behaviour ?

  • code
  • tests
  • docs
  • release note

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.24%. Comparing base (9a572a9) to head (4547c6a).
⚠️ Report is 11 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #56      +/-   ##
==========================================
+ Coverage   83.21%   83.24%   +0.03%     
==========================================
  Files          43       43              
  Lines        4569     4578       +9     
==========================================
+ Hits         3802     3811       +9     
  Misses        767      767              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@atrabattoni atrabattoni changed the title Create intermediate directory when writing to file with .to_netcdf methods. Create intermediate directories when writing to file with .to_netcdf methods. Mar 5, 2026
@atrabattoni
Copy link
Copy Markdown
Contributor Author

I propose to add create_dirs=False keyword argument.

@atrabattoni atrabattoni added the enhancement New feature or request label Mar 5, 2026
@atrabattoni atrabattoni merged commit e657bd9 into dev Mar 5, 2026
6 checks passed
@atrabattoni atrabattoni deleted the feature/exist_ok branch March 5, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants